<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: wheels::dm::adapter&lt; functor, itfcType, T &gt; 模板类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../df/d8d/namespacewheels.html">wheels</a></li><li class="navelem"><a class="el" href="../../d8/d2d/namespacewheels_1_1dm.html">dm</a></li><li class="navelem"><a class="el" href="../../d1/da4/classwheels_1_1dm_1_1adapter.html">adapter</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="../../d5/d33/classwheels_1_1dm_1_1adapter-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">wheels::dm::adapter&lt; functor, itfcType, T &gt; 模板类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../da/d42/adaptor_8hpp_source.html">adaptor.hpp</a>&gt;</code></p>
<div class="dynheader">
wheels::dm::adapter&lt; functor, itfcType, T &gt; 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/d7b/classwheels_1_1dm_1_1adapter__coll__graph.png" border="0" usemap="#awheels_1_1dm_1_1adapter_3_01functor_00_01itfc_type_00_01_t_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="awheels_1_1dm_1_1adapter_3_01functor_00_01itfc_type_00_01_t_01_4_coll__map" id="awheels_1_1dm_1_1adapter_3_01functor_00_01itfc_type_00_01_t_01_4_coll__map">
<area shape="rect" title=" " alt="" coords="5,336,189,571"/>
<area shape="rect" href="../../d7/dbd/structwheels_1_1dm_1_1_t_y_p_e___c_h_k___h_e_l_p_e_r____.html" title=" " alt="" coords="18,171,177,272"/>
<area shape="poly" title=" " alt="" coords="100,272,100,319,95,319,95,272"/>
<area shape="rect" href="../../d7/dbd/structwheels_1_1dm_1_1_t_y_p_e___c_h_k___h_e_l_p_e_r____.html" title=" " alt="" coords="18,5,177,107"/>
<area shape="poly" title=" " alt="" coords="100,122,100,171,95,171,95,122"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ad06d9bbeb8c9a61faa7361a231af6951" id="r_ad06d9bbeb8c9a61faa7361a231af6951"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad06d9bbeb8c9a61faa7361a231af6951">adapter</a> (const T &amp;... adap)</td></tr>
<tr class="separator:ad06d9bbeb8c9a61faa7361a231af6951"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cc438717949acd317612787fd33dda7" id="r_a8cc438717949acd317612787fd33dda7"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8cc438717949acd317612787fd33dda7">~adapter</a> ()</td></tr>
<tr class="separator:a8cc438717949acd317612787fd33dda7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54ed76e0b7b9c48e5b4d000c1616591b" id="r_a54ed76e0b7b9c48e5b4d000c1616591b"><td class="memTemplParams" colspan="2">template&lt;typename ... Params&gt; </td></tr>
<tr class="memitem:a54ed76e0b7b9c48e5b4d000c1616591b"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="#a54ed76e0b7b9c48e5b4d000c1616591b">set</a> (std::function&lt; void(Params &amp;&amp;...) &gt; fun)</td></tr>
<tr class="memdesc:a54ed76e0b7b9c48e5b4d000c1616591b"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置回调函数。在回调函数中进行适配操作  <br /></td></tr>
<tr class="separator:a54ed76e0b7b9c48e5b4d000c1616591b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52ef43588c446123e3fcde578e7d1efc" id="r_a52ef43588c446123e3fcde578e7d1efc"><td class="memTemplParams" colspan="2">template&lt;typename ... Params&gt; </td></tr>
<tr class="memitem:a52ef43588c446123e3fcde578e7d1efc"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="#a52ef43588c446123e3fcde578e7d1efc">request</a> (Params &amp;&amp;...params)</td></tr>
<tr class="memdesc:a52ef43588c446123e3fcde578e7d1efc"><td class="mdescLeft">&#160;</td><td class="mdescRight">执行请求操作  <br /></td></tr>
<tr class="separator:a52ef43588c446123e3fcde578e7d1efc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a30ea91147a22c415bb086f75d11c8eed" id="r_a30ea91147a22c415bb086f75d11c8eed"><td class="memItemLeft" align="right" valign="top">functor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a30ea91147a22c415bb086f75d11c8eed">m_callback__</a></td></tr>
<tr class="separator:a30ea91147a22c415bb086f75d11c8eed"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a5b48125b331932106a42528ffd1c2d4d" id="r_a5b48125b331932106a42528ffd1c2d4d"><td class="memItemLeft" align="right" valign="top">std::tuple&lt; T... &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5b48125b331932106a42528ffd1c2d4d">m_adaptees__</a></td></tr>
<tr class="separator:a5b48125b331932106a42528ffd1c2d4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcf38498a8f73076b1271ff1b79d1109" id="r_afcf38498a8f73076b1271ff1b79d1109"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d7/dbd/structwheels_1_1dm_1_1_t_y_p_e___c_h_k___h_e_l_p_e_r____.html">TYPE_CHK_HELPER__</a>&lt; itfcType, T... &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afcf38498a8f73076b1271ff1b79d1109">m_chk_helper__</a> [0]</td></tr>
<tr class="separator:afcf38498a8f73076b1271ff1b79d1109"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename functor, typename itfcType, typename ... T&gt;<br />
class wheels::dm::adapter&lt; functor, itfcType, T &gt;</div>
<p class="definition">在文件 <a class="el" href="../../da/d42/adaptor_8hpp_source.html">adaptor.hpp</a> 第 <a class="el" href="../../da/d42/adaptor_8hpp_source.html#l00054">54</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="ad06d9bbeb8c9a61faa7361a231af6951" name="ad06d9bbeb8c9a61faa7361a231af6951"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad06d9bbeb8c9a61faa7361a231af6951">&#9670;&#160;</a></span>adapter()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename functor , typename itfcType , typename ... T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d1/da4/classwheels_1_1dm_1_1adapter.html">wheels::dm::adapter</a>&lt; functor, itfcType, T &gt;::adapter </td>
          <td>(</td>
          <td class="paramtype">const T &amp;...</td>          <td class="paramname"><span class="paramname"><em>adap</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../da/d42/adaptor_8hpp_source.html">adaptor.hpp</a> 第 <a class="el" href="../../da/d42/adaptor_8hpp_source.html#l00056">56</a> 行定义.</p>

</div>
</div>
<a id="a8cc438717949acd317612787fd33dda7" name="a8cc438717949acd317612787fd33dda7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8cc438717949acd317612787fd33dda7">&#9670;&#160;</a></span>~adapter()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename functor , typename itfcType , typename ... T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d1/da4/classwheels_1_1dm_1_1adapter.html">wheels::dm::adapter</a>&lt; functor, itfcType, T &gt;::~<a class="el" href="../../d1/da4/classwheels_1_1dm_1_1adapter.html">adapter</a> </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../da/d42/adaptor_8hpp_source.html">adaptor.hpp</a> 第 <a class="el" href="../../da/d42/adaptor_8hpp_source.html#l00057">57</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a52ef43588c446123e3fcde578e7d1efc" name="a52ef43588c446123e3fcde578e7d1efc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52ef43588c446123e3fcde578e7d1efc">&#9670;&#160;</a></span>request()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename functor , typename itfcType , typename ... T&gt; </div>
<div class="memtemplate">
template&lt;typename ... Params&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d1/da4/classwheels_1_1dm_1_1adapter.html">wheels::dm::adapter</a>&lt; functor, itfcType, T &gt;::request </td>
          <td>(</td>
          <td class="paramtype">Params &amp;&amp;...</td>          <td class="paramname"><span class="paramname"><em>params</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>执行请求操作 </p>
<dl class="tparams"><dt>模板参数</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Params</td><td>参数类型表 </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">params[</td><td>IO ]， 参数表 </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../da/d42/adaptor_8hpp_source.html">adaptor.hpp</a> 第 <a class="el" href="../../da/d42/adaptor_8hpp_source.html#l00073">73</a> 行定义.</p>

</div>
</div>
<a id="a54ed76e0b7b9c48e5b4d000c1616591b" name="a54ed76e0b7b9c48e5b4d000c1616591b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54ed76e0b7b9c48e5b4d000c1616591b">&#9670;&#160;</a></span>set()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename functor , typename itfcType , typename ... T&gt; </div>
<div class="memtemplate">
template&lt;typename ... Params&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d1/da4/classwheels_1_1dm_1_1adapter.html">wheels::dm::adapter</a>&lt; functor, itfcType, T &gt;::set </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(Params &amp;&amp;...) &gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置回调函数。在回调函数中进行适配操作 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fun[</td><td>I ]，回调函数对象 </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../da/d42/adaptor_8hpp_source.html">adaptor.hpp</a> 第 <a class="el" href="../../da/d42/adaptor_8hpp_source.html#l00063">63</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a5b48125b331932106a42528ffd1c2d4d" name="a5b48125b331932106a42528ffd1c2d4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b48125b331932106a42528ffd1c2d4d">&#9670;&#160;</a></span>m_adaptees__</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename functor , typename itfcType , typename ... T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::tuple&lt;T...&gt; <a class="el" href="../../d1/da4/classwheels_1_1dm_1_1adapter.html">wheels::dm::adapter</a>&lt; functor, itfcType, T &gt;::m_adaptees__</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../da/d42/adaptor_8hpp_source.html">adaptor.hpp</a> 第 <a class="el" href="../../da/d42/adaptor_8hpp_source.html#l00080">80</a> 行定义.</p>

</div>
</div>
<a id="a30ea91147a22c415bb086f75d11c8eed" name="a30ea91147a22c415bb086f75d11c8eed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30ea91147a22c415bb086f75d11c8eed">&#9670;&#160;</a></span>m_callback__</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename functor , typename itfcType , typename ... T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">functor <a class="el" href="../../d1/da4/classwheels_1_1dm_1_1adapter.html">wheels::dm::adapter</a>&lt; functor, itfcType, T &gt;::m_callback__</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../da/d42/adaptor_8hpp_source.html">adaptor.hpp</a> 第 <a class="el" href="../../da/d42/adaptor_8hpp_source.html#l00078">78</a> 行定义.</p>

</div>
</div>
<a id="afcf38498a8f73076b1271ff1b79d1109" name="afcf38498a8f73076b1271ff1b79d1109"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afcf38498a8f73076b1271ff1b79d1109">&#9670;&#160;</a></span>m_chk_helper__</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename functor , typename itfcType , typename ... T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d7/dbd/structwheels_1_1dm_1_1_t_y_p_e___c_h_k___h_e_l_p_e_r____.html">TYPE_CHK_HELPER__</a>&lt;itfcType , T...&gt; <a class="el" href="../../d1/da4/classwheels_1_1dm_1_1adapter.html">wheels::dm::adapter</a>&lt; functor, itfcType, T &gt;::m_chk_helper__[0]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../da/d42/adaptor_8hpp_source.html">adaptor.hpp</a> 第 <a class="el" href="../../da/d42/adaptor_8hpp_source.html#l00082">82</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/designM/<a class="el" href="../../da/d42/adaptor_8hpp_source.html">adaptor.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
